package com.huawei.entity;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName Shopping_cart
 * @Description TODO
 * @Author 闫修奇
 * @Date 2021/11/28 15:00
 */
public class Shopping_cart {
    private  int gwc_id;
    private  int user_id;
    private  int spsku_id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date sp_date;
    private  int sp_sum;
    private String trolley_id;

    public Shopping_cart() {
    }

    @Override
    public String toString() {
        return "Shopping_cart{" +
                "gwc_id=" + gwc_id +
                ", user_id=" + user_id +
                ", spsku_id=" + spsku_id +
                ", sp_date=" + sp_date +
                ", sp_sum=" + sp_sum +
                ", trolley_id='" + trolley_id + '\'' +
                '}';
    }

    public int getGwc_id() {
        return gwc_id;
    }

    public void setGwc_id(int gwc_id) {
        this.gwc_id = gwc_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getSpsku_id() {
        return spsku_id;
    }

    public void setSpsku_id(int spsku_id) {
        this.spsku_id = spsku_id;
    }

    public Date getSp_date() {
        return sp_date;
    }

    public void setSp_date(Date sp_date) {
        this.sp_date = sp_date;
    }

    public int getSp_sum() {
        return sp_sum;
    }

    public void setSp_sum(int sp_sum) {
        this.sp_sum = sp_sum;
    }

    public String getTrolley_id() {
        return trolley_id;
    }

    public void setTrolley_id(String trolley_id) {
        this.trolley_id = trolley_id;
    }
}
